package com.pzh.guli.service.edu.service.imp;

import com.pzh.guli.service.edu.mapper.CourseMapper;
import com.pzh.guli.service.edu.pojo.CourseDescription;
import com.pzh.guli.service.edu.mapper.CourseDescriptionMapper;
import com.pzh.guli.service.edu.service.ICourseDescriptionService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * <p>
 * 课程简介 服务实现类
 * </p>
 *
 * @author xzh
 * @since 2022-05-11
 */
@Service
public class CourseDescriptionServiceImpl extends ServiceImpl<CourseDescriptionMapper, CourseDescription> implements ICourseDescriptionService {
    @Resource
    private CourseDescriptionMapper courseDescriptionMapper;
    //通过courseId 查询课程介绍
    @Override
    public CourseDescription getCourseDescriptionByCourseId(String courseId) {
        CourseDescription courseDescription = courseDescriptionMapper.selectById(courseId);
        return courseDescription;
    }
}
